#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
	/*
	28; 2015-2,2017-2
	29; 2016-2
	30; 4 6 9 11
	31;	1 3 5 7 8 10 12
	*/
	int year=2014,mouth=11,day=9;
	int aday=1010;
	int a[12]={31,28,31,30,31,30,31,31,30,31,30,31};
	for(int i=1;i<=aday;i++)
	{
		day++;
		if(day==a[mouth-1])
		{
			 mouth++;
			 day=0;
			 if(mouth==13)
			 {
				year++;
				mouth=1;
				if(year%400==0||(year%4==0&&year%100!=0))
					a[1]=29;
				else
					a[1]=28;

			 }
		}

	}
	
	cout<<year<<"-"<<setw(2)<<setfill('0')<<mouth<<"-"<<setw(2)<<setfill('0')<<day<<endl;	
return 0;
}
